<?php


namespace App\Transformers\Product;


use App\Models\Product;
use League\Fractal\TransformerAbstract;

class ProductReplyNewTransformer extends TransformerAbstract
{
    public function transform(Product $data)
    {
        return [
            'product_name' => $data->product_name ?? '',
            'image' => $data->image ?? '',
            'image_url' => 'https://placeimg.com/640/480/any',
        ];
    }

}
